package org.m.demo;

import lombok.Data;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;
//普通读取但是不能读取混合值
@Data
@Component
public class Classroom {
    @Value("${classroom.id}")
    private Integer id;
    @Value("${classroom.name}")
    private String name;

}
